From dca859dfa12562fa3a4810c46345a0714155b27d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 20 Sep 2010 16:39:41 +0200 Subject: [PATCH] offscreenwindow: Get rid of gdk_drawable_get_size() usage --- gtk/gtkoffscreenwindow.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gtk/gtkoffscreenwindow.c b/gtk/gtkoffscreenwindow.c index 9449df3abe..c945e4acfa 100644 --- a/gtk/gtkoffscreenwindow.c +++ b/gtk/gtkoffscreenwindow.c @@ -316,13 +316,10 @@ gtk_offscreen_window_get_pixbuf (GtkOffscreenWindow *offscreen) if (surface != NULL) { - gint width, height; - - gdk_drawable_get_size (window, &width, &height); - pixbuf = gdk_pixbuf_get_from_surface (NULL, surface, 0, 0, 0, 0, - width, height); + gdk_window_get_width (window), + gdk_window_get_height (window)); } return pixbuf; -- 2.30.2